/*
 *  $Id: TidalJellyfish.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Water.Creatures {
    public class TidalJellyfish: CreatureCard {
        public TidalJellyfish(): base("001_w_c_tidal_jellyfish") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Water;
            Value = 100;
            SetRace<Races.Jellyfish>();
            Damage = 2;
            Health = 2;
            AddManaCost(ElementType.Water, 2);
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add<Affects.Aquatic>();
            affects.Add(new Affects.OnDamage(DoTidalJellyfish, AffectSummaryType.Local));
        }

        private static void DoTidalJellyfish(AbstractObject target, DamageInfo damage) {
            target.Owner.IncrementMana(ElementType.Water, damage.HealthChange);
        }
    }
}
